---
---
!!! XML

%feed{ 'xml:lang'=>'en-US', :xmlns=>'http://www.w3.org/2005/Atom' }
  %id= "#{site.base_url}/blog/#{page.sanitized_author}/"
  %title= escape_once( page.title )
  - if ( site.author )
    %author
      - if ( site.author['name'] )
        %name= site.author.name
        - if ( site.author['email'] )
          %email= site.author.email
      - else
        %name= site.author
  - unless page.entries.empty?
    %updated= page.entries.first.date.xmlschema
    %link{:rel=>"self",      :type=>"application/atom+xml", :href=>"#{site.base_url}#{page.url}" }
    %link{:rel=>"alternate", :type=>"text/html",            :href=>"#{site.base_url}/" }
    - for entry in page.entries
      %entry
        %id #{site.base_url}#{entry.url.sub(/\.html$/,'')}
        %title= escape_once( entry.title )
        %updated= entry.date.xmlschema
        %link{:rel=>"alternate", :type=>"text/html", :href=>"#{site.base_url}#{entry.url.sub(/\.html$/,'')}" }
        - if ( entry.author )
          %author
            - if ( entry.author['name'] )
              %name= entry.author.name
              - if ( entry.author['email'] )
                %email= entry.author.email
            - else
              %name= entry.author
        %summary
          #{summarize( html_to_text( entry.content ), 100 )}
        %content{:type=>'html'}
          = clean_html( html_escape( fully_qualify_urls( site.base_url, find_and_preserve( entry.content ) ) ) )
  
